package com.ncamc.pms.core.exception;

import com.ncamc.next.common.exception.AbstractProjectCode;
import com.ncamc.next.common.exception.BaseException;

public class ApplicationException extends BaseException {

    public ApplicationException(AbstractProjectCode abstractProjectCode, Object... objects) {
        super(abstractProjectCode, objects);
    }

    public ApplicationException(AbstractProjectCode abstractProjectCode, Exception e, Object... objects) {
        super(String.format(abstractProjectCode.getMessage(), objects), e);
        setStatus(abstractProjectCode.getCode());
    }
}
